Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set authorization bearer header from auth_token cookie #69

Merged
merged 5 commits into from
Aug 17, 2023
Merged

Conversation

mamico
Copy link
Contributor

@mamico mamico commented Jul 19, 2023

the problem has been discussed plone/plone.restapi#148 andhttps://github.com/plone/plone.restapi/pull/1303

To summarize, the main problem is that if in the proxy rules, requests for files and images are forwarded directly to plone, the auth_token cookie is not considered and the user is anonymous.

The solution proposed here only works in cases where the backend domain (plone) and the frontend domain (volto) match.

@mamico mamico requested review from cekk and pnicolli July 19, 2023 11:36
@mamico mamico merged commit 6c411c8 into master Aug 17, 2023
16 checks passed
@mamico mamico deleted the auth_token branch August 17, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants